import java.util.Scanner;

public class Trb {
    public static void putChars(char c,int n){
        //连续显示n个字符C
        while (n-->=0)
            System.out.print(c);

    }

    public static void main(String[] args) {
        Scanner stdIn=new Scanner(System.in);
        System.out.println("层数:");
        int n=stdIn.nextInt();
        for (int i=0;i<n;i++)
        {putChars(' ',n-i);
            putChars('&', i);
            System.out.println();
        }
    }
}
